remove confusing dead code