added heuristics for noise removal