update the function to static