modify auto run code