Working on multi dim allocation