replace 'print' with 'logger'