initiate $deleted as 0