removing heurist codes