removed multiple iterations and set a standard m=1000