changed functions.