finish the rezise and recongnition