i'm guessing this doesnt work because it returns the full csv object.  to get it to work you need to explicitly return the list_states array.