modify for ripple