change some const value into input parameters