fixed error with line numbering for input, now starts at 1 correctly