fixed new allocation scheme