inserted start and end tags for fir, fib, median