updating cube