removing trailing paragraph