clean up unneeded contents variable