calculate phenotype deviatiions and clean up..