added pasue at end