fix dead code warning