add portrait check