avoid unused variable warning by conditional compilation