ALERTgit status! in the functions that are used by simulate there is a mistake! To be continued