range is exclusive, missed drawing the last line of output