Is it really necessary to have this variable out of the following function ?