CubeFactory better