dynamic generation of field