updated the transaction model so that there was no error