replacing repeated ids with classes