fixed the inline functions.