split some anonimus class in inner class