hypercube now done and works