make field work with DI