added limit to levels