changed syntax to use a table