fix percentMax needed to be multiplied by 100