updated some state stuff