modify retsend function and some bug