works on multiple lines