add inline for faster process