added getDimensions