move param initalization class to inner class