fixed the variable for the function