shortened up some code and gave less work to public insert