remove commented data from ref file