support for container and fixed bug of addition at index 0