modify wait for container