small update to sw_reset() function