bug fix: function_set now uses rs: 0