remove stale variables