removed duplicate code in LUTReverser