state-setting implemented