external function example added