added first version of similarity check;