edited constraints, using constant for key