removing excess metadata