updated parsing for delete