fixes tianqi function 3