Resolving category relationship