parses contents of catagories