restrict diff calculate action.