added more logging for scaling