added debuging