prevent line jumping