detecting touch types