check for existing transaction