works with avg and std2 and clustering. Time to switch to derives