add return value to set and delete