add type field of post