added the cubeGen loop, not sure if it does anything