rotate and get lines after rotation