structure of at_risk funs ok