fixing the line 5 die problem