attempt 3 at line ending fix