added code to link externally