removed local var that could have impact on some compilers