fixes for transaction applied (method is now working)