deletes if block