fix for prettier fail on getDimensions()