invalid and valid transaction