fixed cosine calcs