modify for enable func