updated diff command sequence