cleaning similarity method

Signed-off-by: loopasam <samuel.croset@gmail.com>