added delete and insert methods