started the scaling functions