Update code of checking parameter