corrected port and adding debuging loop