enforce limit on entity presave