fixed first scale, removed unused code