wrote out zip-tallying code