fixed pointer
added arg to insert
cleanup