added a mockup function to allocate elves