updated difat works, but need to add conditions to it.