work with multiple tables in the same buffer