utilities for moving lines in file