[IMP]hr: improve code in function field.