name function is implemented for field.