fixed variable set up not used warning