working program again, but still not counter