add inline functions