constrain write_which to length 2