refine packet procedure of receiving part