added delete-func