implement state effect for issue #7