moved insertIdentifier to main.cpp