correcting result html tag. reformat input and result. adding filter