remove commented code and add an explanation