scalefunctiontype56 and 57