added a convert for an int to be updated in the global counter. it is segfaulting when run though FYI, commiting before laptop dies