missing dollar sign in old file check. fixing it breaks everything