add modules to functions