fixed warning about unused variable