using logger instead of sysout