add library for scaling