remove fields from code