finally got cube to render properly