checkstyle
removed unused variable startedToWait