doc is only referenced once, no need to alias it