defect and fails to correct the defect, a municipality is liable for an injury caused thereby
(Blake v City of Albany, 48 NY2d 875 ). While prior written notice laws serve to limit or reduce a municipality’s duty, they are in derogation of the common law and are to be strictly construed
(Doremus v Incorporated Vil. of Lynbrook, 18 NY2d 362 ). Their effect is to insulate the municipality from liability for defects in streets and sidewalks which are the result of nonfeasance
(Barry v Niagara Frontier Tr. System, 35 NY2d 629 ). Thus where there is no evidence that the municipality caused the defect, compliance with a prior written notice law is an element of the cause of action and must be proved
(Shaw v City of Auburn, 91 AD2d 817 , affd on mem below
59 NY2d 780 ). Liability will attach without prior written notice, however, if the injury was produced by a dangerous condition caused or created by the municipality
(Muszynski v City of Buffalo, 33 AD2d 648 , affd on opn below
29 NY2d 810 ). The proof at trial demonstrated that the city water department had received two reports that the water box cover was defective. Both reports emanated from the 15th Precinct of the police department. The first was by telephone on June 9, 1977 and the second was a written report dated June 17, 1977. The records of the water department indicated that in response to these reports it took the following action: On June 10,1977 it replaced the cover and on June 21, 1977 it found it “repaired”. Plaintiff was injured on June 28, 1977 and he testified that immediately after his injury he examined the water box and observed that one of two flanges which held the cover was worn away. The evidence showed that the box was 70 to 80 years old. It was plaintiff’s theory at trial that one of the flanges in the box on which the cover should have laid was so worn away that the cover did not support plaintiff’s weight when he stepped upon it. The inference to be drawn from plaintiff’s unrebutted evidence is that the placement of the cover on the box without repairing the flanges was to create a trap. The evidence was thus sufficient to give rise to a jury question as to whether the city created a dangerous condition by placing a cover on an inadequate and unsuitable support. Thus defendant’s motion to dismiss should not have been granted (see
Nicholas v Reason, 84 AD2d 915 ). (Appeal from judgment of Supreme Court, Erie County, Cook, J. — negligence.) Present — Dillon, P. J., Doerr, Denman, Boomer and Schnepp, JJ.