changed the ors to table