MAINT: fix unused variable warning