use doc instead of value