Many SID and STAR doesn’t fly good

Same issues during RNP approach. Coded in correct way but A/P unable to fly it loosing correct vertical and horizontal path.