modify transaction model