debugging cosine representation continues