switch basis comparison