forgot to add 'export' to function definition