converted istouch function to a variable - this only needs checking once