add remove function to containers