box collapse mechanism added