get median of online data