made newline input work