changed CategoryCollection so that it fetches only once