make able to use explicit tree aut
bug fixing
return result of sim function