fix if then for showPercent; forgot paranthesis