changed order of childAlias and parentAlias so that parentAlias comes first