loop in the correct direction