deleted beforelastmin
new beforelastmin