fixing variable name child vs parent