added "portrait" mode