removes existing dealloc method, replaces with newly created