refacto dimension