Updated the function name and removed the local variable