now accepts string and int responses when calculating average contrasts