COSINE AND SINE TRANSFORM update