modify for automation