prototype c switch works correctly now