if mode=ljfour: input graylj; elseif mode=cx: input graycx; elseif mode=aps: input grayaps; fi