fixed one last switch statement