update recognize function