modify the code after merge upstream/master.
add Jiashuai's back-end function.