function packed into a file