added some niceties to "affect" in sset