mean and std detector done