moved merged_limit to shape class