enforce limits on fields