fix inline functions