adding sanfona logic