fixing duplicate logs #2