turn the function to inline