shouldnt be a need for the var switch here