made categories String instead of String[]