changed codes to be used in hydro