made program recognize new lines