modify the script function

no need of innertrshow parameter