remove useless fields