some cleanup
changed CATEGORY_DOUBLING value