added scale factor