fixing switch profile syntax