modify end shell