adding deleting function