removed unused variable isTouch