change system out to logger