rename sum to amount on transaction model