removed add categories function as a stand alone functino; is now included in the update function