added checking for multiple line follow