added limit to states