upd. cosine script.