made sure the random hessian is only used in conjunction with npregbw for the moment