update cosine to static