format data on the client side