finished queue items delete and add function