add collapse rule