added tap and double tap check