residual_array isn't scaling, temp legend fix