if translate java into scala, the parameters seems to be like this way.