modify posts_collate