added code to remove log traces