End coding for data retrieve from server