stateful assignment