moving `then` statements