fix to scaling