updated to get from parent