simple implementation for vertical mode