a non-correct performance opt with minor impact?
color pot fixed
some changes for performance
occ avg fix
weight vector instead of stat function
cleanup