allocation code review