add parent child in model