*averages of definable params calculation adapted

now average values are calculated the way szbase does it