added new function clearDimensions