modified to use 10 latest post