fixed inline functions