use correct shape type