minor changes in sending order