changed max points principle (unfinished yet)