1st attempt at fixing the percentage matching