fix minus cosine, change some weight