cleaning log statement