fix model
refactory transaction model