pass variable content as parameters
replace print by logging methods