implemented similiarity for ints and strings