fixing typo and setting n=100