averaging and UDP