model: number threads from 0, not 1