added delete and add function