replace Math.Acos with acos