updated cubes to be a model