experimental script for vector cosine analysis