check sign of beta and gamma angles