inner class should only refer to method arguments not outer scope objects