handled edge case of 0 box