changed active objects to use hashmap