small error in variability correctred