hw to sw