remove debugging; fixed scaling