added generating random states
Data update