even better: make the table lookup safe