some errors about tsmap to be solved