trying to sort out pointer to parent struct