wrote diff function to ease the process of sending partial updates of changed data to the clients