add constraints to lookups