update to each_line instead of each in templates