remove debugging elements