view allocation code review