added cube/inv_cube