added parameter for threshold to param.h