troubleshooting... tuples and select statements