prototyping the shape decomposition