How to find the biggest number in the variable with many instances in anoher actor

is this right?