remove unused function and correct getscale method