training implemented but recognition not working