add code of checking parameter condition