2 methods in ai script