added condition for adding new container