flip vertical arrangement of code