added .cc code for noise