still don't know why it termiante by itself