adjusting the Category Array indices and size