do not use TYPE_ORIENTATION because it is deprecated