remove unnecessary method
replace some print statement with print function calls.