Clean cube creation func