remove unneccessary fields