added verification on parameter