add ids where they are needed (a class is not a unique indetifier)