modified table prototype extend