added function getCustomField