remove unneccessary metadata