optimizing code size with touch functions