check unused code