creation of feeds as well ass post insert function