further progress on table() method