added gesture check