recieving data from hn and sorted