moved emitted statements