no need to call getDimensions again