errors for scaling added