added transaction checks