conver inner class to lamd style

conver inner class to lamd style