adding insert method