corrected clear method