remove the useless prev var