added procedure validation