changed to Sin and Cos, staticified