replace sysout with proper logging call