fixed flaw in takemoney