converting to sample specific