clear old func