remove excess vars and message cards