diff function to compare the latest feed data with the previous one