delete unnecessary code in custom containers