haw to deal with a resist