Remove agg frist and last
remove require space