updated posts/index for relocation of variable error  on master