BARCELONA, Spain (AP)Dani Alves was transferred to a new detention center because of security reasons after being accused of sexual assault, Catalan officials said Monday.

The new detention center has ”smaller residential modules” where it is easier to guarantee the safety and coexistence of inmates.

Authorities said the type of crime that Alves is being accused of was not taken into consideration in the decision to transfer him.

Alves spent three nights at another facility that holds about 200 inmates. The new one accommodates about 80 detainees, including convicted prisoners and others awaiting trial.

Alves is expected to share a cell with another inmate for now.

The 39-year-old Alves is being accused of sexually assaulting a 23-year-old women at a nightclub in Barcelona late last year. A judge ordered the Brazil defender to remain jailed without bail after hearing the testimony of Alves, his accuser and a witness.

He has denied any wrongdoing.

Spanish media reported Monday that Alves’ family was considering making changes to his legal team.

Alves won 42 soccer titles, including three Champions Leagues with Barcelona and two Copa Americas with Brazil. He played in his third World Cup, the only major title to elude him, last month.

More AP soccer: https://apnews.com/hub/soccer and https://twitter.com/AP-Sports