fix bugs so it read all the contrasts