change check on orbital_pos to orbital_dir