moving to external code