should this proccess to be done before reset or after reset??