adding a displacement for the mid