lookup table for direction clockwise function