rating bug found and fixed
is sane function and return values refined of genetic