remove all useless contents