moved log below output