added debuging to track down error