scripts for similarity