hypercube creation added to logic