use constant type arrays not large if statements