using parent ID as a chain ID