Add fun.aggregate as sum to avoid warning
trim the input for MES lot