flat switching