switching in cleaner arraryification syntax