Working on states Api processing