remove manual dx adjustment and make sure starting phi is properly initialized
fix front position function