set the same types for topic properties and return parent as a integer, not string