code for set calls