optimized log attemt 1