modify for preview