fixed definition of directions