adds modifications to support recognition of multiple objects