change @posts instance variable