adding wait