moving lines to paths