apply scale factors from header