start of set code