added optimization for spread money control