fixes tianqi function 2