added code for parent fork