remove debug
calculate similarity in actionTrait