cleaned the code...removed all print lines to debug the code