implemented object allocation from slots