counter function added