add function desc and change some variable name