get rid of useless fields