added soft delete functionality