updated main.cpp to print inserts