using tables to pass parameters