handle edge case of 0 dimensional cube