collapse 3 lines into 1 line