adding set code