setting threads to 10