add box support for rect
merge