added validity check for created containers