insertRepresentation method corrected