norm updated to allow user defined critical value