made changes to support relset