fixing anonymous inner class toString