thrid commit that contains all the modifications to impliment with irk_simulation