config for cosine