steal more code from Mikola and render to cube