5. finish simulation part