made some updates regarding errors and percentages