added resend feature