debuging with wrong result in queue c