fixes to insertIdentifier