codes and external combined