modified the sh script