added vertical mode