added method to transaction model