PR for code review

This variable is only used in the constructor, its better to declare it as a local variable instead.