fix "unused code" by scrutinizer