hoisted up m_scale function