took out setmode