added the code for the name insertion