try thresh=12 first to fix error code 134