added function scale0