moved directiontype to constants