fix variable name
use "export" for functions