export method generation works