check whether define isFirstRun