fixing annoying error where first line is blank of console