output code, fix #2