changed mult solutions algorithm, added averna