finished switch stuff