added cp init states
fixed init