swap id for class