fixed the percentage issue