one to six percentage was always 0 because of variable typo