improve posts initialization