added categories and join table