adds insert method