scale basic function added