minor refactoring in field renderer