void referenced undefiend variable 'money' that it didn't need