updating function returning categry name