makes an insert method