add log for scaling