added ripple patch