now computes orienation of the fragments