generation of field is working