first version of recognizing, dont checked if it works...