add logic of recv