handling multiple lines