found 'maxBy' which is what i needed