refactored FetField to getfieldfornum