add digit recognition