refactored model to use getSize for item dimensions