fix null pointer?
counter