Total proctocolectomy with ileal pouch anal anastomosis is the first choice surgical operation for management of ulcerative colitis and familial adenomatous polyposis. The addition of diverting ileostomy may reduce septic complications. In this randomized study the investigators compare two groups of patients with stapled ileoanal pouch one of them had diverting ileostomy and in the other this step is omitted.