reordered logs to match code sample