modify getting diff method