modified module unibo_allocation