fixed and tested delete