remove dead code warning