using tables instead of list