added noise. fixed small error