get state working