updated external code