attachment and category model