get rid of FutureWarning from comparing tuple