fix #5: passing tables as function parameters