implemented reset pw