adding ability to join in tables