remove old code at end of script