draft of the set_all and set_delta functions done