assign parent data bfore creating instance