adding in trigonometric functions