fixing line by line