remove invalid final log statement