* removed unused var
* cppcheck warning