changed to using + generating cosine LUT