repair adding to a class