move log statement