seperated insertion function
Merge pull request #2 from bakerj32/master

seperated insertion function