added stop code