constraints for document