add risk function call