call stop at the end