refes issue #13 add percent compare algorithm