editted beginning~inline functions