fixing scale problem