added set_allocations() and delete_allocations()