How to call the Ax states in a loop?