set category and key as required