find important bug, modify for testing