added some INLINE pragmas