changed [] to array()
new commit
changed [] to array()
added ids to states
update