add the after run code