added truncateTable method