modified hand recognition