use external code