clean and verification, corrected sed errors