transform 16x16 code cleanup