sort().reverse()[0] instead of sort()[length-1]