renamed, changed i from 50 to 10 for quick speed up