removed uneeded in-loop declaration