messing with allocation code