Can change the static ratio from outside the function here