added x scale correctly