end simulation