def de_median_redshift(wavelength, median_z):
    """De-redshifts the same way as above

    Parameters:
    wavelength (array): wavelength values to convert
    median_z (int): redshift to change the wavelength by

    Returns:
    wavelength_red (array): redshifted wavelength

    """

    wavelength_red = wavelength / (1 + median_z)
    return wavelength_red