transferred output to working JSON