using logger instead of sout