added all the categories. removed type from ad and fixed repo method