refactor: inline only once used functions