add cosine trap with exponentially decaying end