added type column to article model