remove unnecessary code in comments