How regulations affect innovation