work on gesture detection