AL: remove use of Switch