remove unused variable, fix warning