cleanup re prev