simplify shape binning