added conditions to elements in table() method