added move lines function