[P3]Remove unneeded debug prints and use the correct variables