fixing charity logic