updated dosource_contrasts to easier account for different numbers of tapers