chrisanthy's stateful assignment