removed warning about un-used variable