added endwise