removed unnecessary counter