clean up on flexible boxes