risk is working for constant $ values mode