moving state info to STATE.h,c