cosine graph added