sort out ovf to box logic