modified the logger