getting and sending more data more elegantly