remove unused fields so that we don't keep 'any' type, as suggested by Lucas.