states initialization stuff