added directionclass