changed controller receive and send task