removed inline keyword to fix build with clang