removed unneeded inner class