removed unnecessary wait