have untested insert function