changed the inner class to static