made denoise and tres_neighbor one code