remove commented debug line and unnecessary sprintf