wrote save function for bloggers and blgoposts.