added n=100 limit in variable generation