deprecate the cube function