moved recognition to other file