put object recognition and shared functions in different files