use orientation_t type instead of int