added assertion for no container