remove unused variable causing gcc warning