auto action function for input param.