code cleanup: inline functions