ace counter works correctly now