DENVER—The judge in the Colorado theater shooting case is limiting the use of the some of the statements James Holmes made after his arrest.

In a ruling Friday, Judge Carlos Samour said that statements Holmes made after he had been read his rights and requested an attorney can’t be used against him. However, he said the statements were voluntarily made so prosecutors can bring them up if they’re needed to resolve conflicting testimony during his trial next year.

The statements were redacted so it’s not known how significant they are to the case.

The ruling comes a day after the judge sided with prosecutors in allowing the use of records from two dating websites in which Holmes asked “Will you visit me in prison?”