finished categorizing codes