neglecting the end effects.