adapt categories