inserting works for sample, but no error checking