remove superfluous attributes