simulation length correctly calculated now