fixed getDirection methods