trying to solve average karma