add wait to all