MAINTENANCE VS ALTERNATIVES: WHEN PATCHING FAILS AND FULL REPLACEMENT BECOMES NECESSARY