removed the 1st line and increased the wait time at the end