fix warning about unused variable