rid of unused attributes