edited input by lines