pass an Category object instead