cleaning scalar trigonometric