set() now functioning as it should